class Violation_recordFormModel extends Backbone.Model
    url: '/mytable/getModel?s=table.creators.Violation_recordTable'
    initialize: (options) =>
        @fetch()
   
#--------------------------------------------------controler
class Violation_recordsApp
    search: =>
        myapp.mainRegion.close() 
        mymodel = new Violation_recordFormModel
        @layout = new ModelMainLayout(model: mymodel)
        myapp.mainRegion.show(@layout)

            

#--------------------------------------------------router
class Violation_recordsAppRouter extends Backbone.Marionette.AppRouter
    appRoutes: 
        "violation_records": "search"

                
myapp.addInitializer -> 
    myapp.Violation_records_app = new Violation_recordsApp()
    myapp.Violation_records_app.router = new Violation_recordsAppRouter controller: myapp.Violation_records_app

myapp.vent.trigger("routing:started")
